package com.ruoyi.lab.service.impl;

import java.util.List;

import com.ruoyi.lab.domain.JacTestProjectLog;
import com.ruoyi.lab.mapper.JacTestProjectLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.lab.service.IJacTestProjectLogService;
import com.ruoyi.common.core.text.Convert;
import org.springframework.web.multipart.MultipartFile;

/**
 * logService业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-06
 */
@Service
public class JacTestProjectLogServiceImpl implements IJacTestProjectLogService 
{
    @Autowired
    private JacTestProjectLogMapper jacTestProjectLogMapper;

    /**
     * 查询log
     * 
     * @param id logID
     * @return log
     */
    @Override
    public JacTestProjectLog selectJacTestProjectLogById(Long id)
    {
        return jacTestProjectLogMapper.selectJacTestProjectLogById(id);
    }

    /**
     * 查询log列表
     * 
     * @param jacTestProjectLog log
     * @return log
     */
    @Override
    public List<JacTestProjectLog> selectJacTestProjectLogList(JacTestProjectLog jacTestProjectLog)
    {
        return jacTestProjectLogMapper.selectJacTestProjectLogList(jacTestProjectLog);
    }

    /**
     * 新增log
     * 
     * @param jacTestProjectLog log
     * @return 结果
     */
    @Override
    public int insertJacTestProjectLog(JacTestProjectLog jacTestProjectLog)
    {
        return jacTestProjectLogMapper.insertJacTestProjectLog(jacTestProjectLog);

    }

    /**
     * 修改log
     * 
     * @param jacTestProjectLog log
     * @return 结果
     */
    @Override
    public int updateJacTestProjectLog(JacTestProjectLog jacTestProjectLog)
    {
        return jacTestProjectLogMapper.updateJacTestProjectLog(jacTestProjectLog);
    }

    /**
     * 删除log对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteJacTestProjectLogByIds(String ids)
    {
        return jacTestProjectLogMapper.deleteJacTestProjectLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除log信息
     * 
     * @param id logID
     * @return 结果
     */
    public int deleteJacTestProjectLogById(Long id)
    {
        return jacTestProjectLogMapper.deleteJacTestProjectLogById(id);
    }
}
